/*
 * @Description: 路由表
 {
        path: '',  必须为完全路径
        name: '',
        component:()=>import(),
        meta: { 
          title: '', 菜单标题
          keepAlive: true, 是否缓存该组件
          icon:'' ,  菜单图表，图标必须在assets/icons/index文件中使用内联导出，在此文件内导入
          hidden:false,  是否隐藏该菜单项
          permission:[]  权限数组，该菜单需要哪些权限才可以访问
        },
      },
 * @Autor: 人生
 * @Date: 2020-09-27 15:37:53
 * @,@LastEditors: ,: 人生
 */

import RouteView from '../components/RouteView.vue'
export const asyncRouterMap = [
  {
    path:'/account',
    name:'account',
    redirect: '/account/averageUser',
    component:RouteView,
    meta: { title: '用户管理',icon:'fire',permission:['用户管理','注册用户','管理用户'] },
    children:[
      {
        path: '/account/averageUser',
        name: 'account.averageUser',
        component:()=>import(/*webpackChunkName:'account.averageUser'*/'@/views/account/averageUser'),
        meta: { title: '注册用户',permission:['注册用户'] },
      },
      {
        path: '/account/averageUser/audit',
        name: 'account.averageUser.audit',
        component:()=>import(/*webpackChunkName:'account.averageUser.audit'*/'@/views/account/averageUser/audit.vue'),
        meta: { title: '审核', hidden:true,permission:['注册用户'] },
      },
      {
        path: '/account/manageUser',
        name: 'account.manageUser',
        component:()=>import(/*webpackChunkName:'account.manageUser'*/'@/views/account/manageUser'),
        meta: { title: '管理用户',permission:['管理用户'] },
      }
    ]
  },
  // { // 这个* 会被处理到当前所有路由的最后面，与位置无关
  //   path: '*',
  //   component: () => import( /*webpackChunkName:'404'*/ '@/views/404.vue')
  // }, 
]